package com.jx.driving.transmission;

import java.io.Serializable;
import java.util.Arrays;

import com.jx.driving.message.TimeTerminalTransmissionMessage;
import com.jx.driving.protocol.terminal.annotation.LimitedStringAnnotation;
import com.jx.driving.protocol.terminal.annotation.TailByteArrayAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;

/**
 * 
 * 上传照片数据包
 * 
 * @author shenliuyang
 *
 *         2016年8月15日下午2:56:52
 */
@TerminalAnnotation
public class Terminal0x0306Transmission extends TimeTerminalTransmissionMessage implements Serializable {

	private static final long serialVersionUID = 2555573181213068420L;

	@LimitedStringAnnotation(value = 10, order = 1)
	private String imageNo;// 照片编号
	@TailByteArrayAnnotation(order = 2)
	private byte[] content;// 照片内容

	public String getImageNo() {
		return imageNo;
	}

	public void setImageNo(String imageNo) {
		this.imageNo = imageNo;
	}

	public byte[] getContent() {
		return content;
	}

	public void setContent(byte[] content) {
		this.content = content;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Terminal0x0306Transmission [imageNo=").append(imageNo).append(", content=")
				.append(Arrays.toString(content)).append("]");
		return builder.toString();
	}

}
